<?php
$redisClient = new swoole_redis;
$redisClient->__construct($options = ['password' => '!@#$981596276',]);
$redisClient->connect('120.31.131.231', 6379, function (swoole_redis $client, $result) {
    if ($result === false) {
        echo "connect to redis server failed.\n";
        return;
    }
    $data = $client->brPop('list-data');
    var_dump($data);
    $client->close();

});
